package adminLoginPack;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import InvestmentPojo.contactusPojo;
import Notifications.notificationsDataLoading;

public class FemaUtilAuthenticate {
 
 
    public boolean isUserExist(HttpServletRequest request, HttpServletResponse response,String userID){
 	   boolean flag = false;
 	   try{
 		 String  userId = null != request.getParameter("UserIDForservice")?request.getParameter("UserIDForservice"):"";
 		  if(!"".equals(userId)){
			  userId =  null !=  request.getSession().getAttribute("UserID")?(String) request.getSession().getAttribute("UserID"):""; 
		  }
 		  
 		  if(!userId.equals("") && !userID.equals(userId)){
 			  flag = true;
 		  }else{
 			  flag = false;
 		  }
 	   }catch(Exception e){
 		   e.printStackTrace();
 		   return flag;
 	   }
 	   
 	   return flag;
    }
 
}


